package top.jojoace.GlobalExceptionAdvice_And_AutoURI.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.jojoace.GlobalExceptionAdvice_And_AutoURI.DAO.UserImpl;


@Service
public class UserServiceImpl {

    @Autowired
    UserImpl user;

    public String getStrUser(){
        UserImpl user = this.user;
        user.setAge(10);
        user.setName("na");
        return user.getName()+"-"+user.getAge();
    }
}
